$OpenBSD: patch-source_tools_pdfpages_c,v 1.2 2016/12/12 10:54:39 sthen Exp $

add pledge(2) to "mutool pages"

--- source/tools/pdfpages.c.orig	Mon Nov 28 13:34:04 2016
+++ source/tools/pdfpages.c	Mon Dec 12 09:39:02 2016
@@ -189,6 +189,12 @@ int pdfpages_main(int argc, char **argv)
 	if (fz_optind == argc)
 		infousage();
 
+	if (pledge("stdio rpath", NULL) == -1)
+	{
+		fprintf(stderr, "pledge: %s\n", strerror(errno));
+		exit(1);
+	}
+
 	ctx = fz_new_context(NULL, NULL, FZ_STORE_UNLIMITED);
 	if (!ctx)
 	{
